package jk;


import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class timeTest implements ActionListener {

    Timer timer ;

    public timeTest(){
        timer = new Timer(50,this);
    }

    /**
     * Invoked when an action occurs.
     *
     * @param e
     */
    @Override
    public void actionPerformed(ActionEvent e) {
        if(e.getSource()==timer){
            System.out.println("jk");
        }
    }
}
